<?php echo $this->render($this->includeDir . '/toolbar.php');?>
<?php 
	/*===============================================
	 * Start - Hien thi cac phan tu trong database 
	 *===============================================*/	
	$name 			= Zendvn_Filter_Filter::filterContent($this->Item['name'],'filter');
	$parents 		= ($this->Item['cname'] == '')? 'root' : $this->Item['cname'];
	$src			= FILE_URL . '/news/category/thumb/' . $this->Item['image'];
	$picture 		= '<img src="' . $src  . '" />';
	if($this->Item['image'] == ''){
		$picture = '<i>' . $this->translate('updating') .'<i> ...';
	}
	$summary		= Zendvn_Filter_Filter::filterContent($this->Item['description'],'filter');
	$html_descript	= Zendvn_Filter_Filter::filterContent($this->Item['html_descript'],'filter');
	$html_keyword	= Zendvn_Filter_Filter::filterContent($this->Item['html_keyword'],'filter');	
	$created 		= $this->Item['created'];
	$created_by 	= Zendvn_Filter_Filter::filterContent($this->Item['created_by'],'filter');;
	$modified 		= $this->Item['modified']!='0000-00-00 00:00:00'?$this->Item['modified']:'';
	$modified_by 	= Zendvn_Filter_Filter::filterContent($this->Item['modified_by'],'filter');;
	$img = ($this->Item['status'] == 'active') ? 'active.png' : 'inactive.png';
	$src = "images/small-icons/" . $img;
	$status = '<img src="' . $src . '" />';
					 
	$arrRow = array(
					array('label'=>$this->translate('Name'),'info'=>$name),	
					array('label'=>$this->translate('Image'),'info'=>$picture),					
					array('label'=>$this->translate('Parents'),'info'=>$parents),						
					array('label'=>$this->translate('Description'),'info'=>$summary),
					array('label'=>$this->translate('Html descript'),'info'=>$html_descript),
					array('label'=>$this->translate('Html keywords'),'info'=>$html_keyword),
					array('label'=>$this->translate('Created'),'info'=>$created),
					array('label'=>$this->translate('Created by'),'info'=>$created_by),
					array('label'=>$this->translate('Modified'),'info'=>$modified),
					array('label'=>$this->translate('Modified by'),'info'=>$modified_by),
					array('label'=>$this->translate('Status'),'info'=>$status),
				);
?>
<div id="element-box">
	<div class="m">
		<div class="form-table">
            	<fieldset class="admin-fieldset">
                <legend class="admin-legend">Form Detail</legend>
            	<table width="100%" border="0">
                	<?php echo $this->partialLoop('row-info.php',$arrRow);?>
                </table>
                <div class="clr"></div>
                </fieldset>
            </div>
            <div class="clr"></div>
	</div>
</div>
